Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@theme-ui/css
Advanced tools
[![Minified Size on Bundlephobia](https://badgen.net/bundlephobia/minzip/@theme-ui/css)](https://bundlephobia.com/package/@theme-ui/css)
@theme-ui/css
contains the framework-agnostic core logic of Theme UI. It lets
you write style objects with responsive, theme-aware ergonomic shortcuts.
npm i @theme-ui/css @emotion/react
import { css as transformStyleObject } from '@theme-ui/css'
import { css as createClassName } from '@emotion/css'
const root = document.getElementById('root')
/** @type {import("@theme-ui/css").Theme} */
const theme = {
colors: {
text: '#222',
},
fonts: {
mono: 'monospace',
},
space: {
sm: '1rem',
md: '2rem',
},
}
const styles = transformStyleObject({
padding: ['sm', 'md'],
border: ({ colors }) => `2px solid ${colors.text}`,
h1: {
fontFamily: 'mono',
color: 'text',
},
})(theme)
root.classList.add(createClassName(styles))
root.innerHTML = `
<h1>You can use <code>@theme-ui/css</code> in Vanilla JS!</h1>
`
v0.15.7 (Thu Mar 30 2023)
FAQs
[![Minified Size on Bundlephobia](https://badgen.net/bundlephobia/minzip/@theme-ui/css)](https://bundlephobia.com/package/@theme-ui/css)
The npm package @theme-ui/css receives a total of 54,412 weekly downloads. As such, @theme-ui/css popularity was classified as popular.
We found that @theme-ui/css demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.